/*
 * @Description: file content
 * @Author: oooh
 * @Date: 2024-04-23 17:55:21
 * @LastEditors: oooh
 * @LastEditTime: 2024-05-16 14:31:26
 * @FilePath: \Civil_Servant_Performance_PC\src\api\work\work-completion\index.js
 */
import request from '@/utils/request'

// 工作纪实保存/提交
export function workSaveOrSubmit(data) {
  return request({
    url: '/api/deptWorkPlans/results',
    method: 'patch',
    data: data
  })
}

// 工作纪实撤回
export function revocation(data) {
  return request({
    url: '/api/deptWorkPlans/results/recalls/' + data.id,
    method: 'patch'
  })
}

// 中心工作纪实（自评打分）
export function centerWorkCompletion(query) {
  return request({
    url: '/api/deptWorkPlans/centerWorkScores/' + query.id,
    method: 'get'
  })
}

// 中心工作纪实（自评打分）保存/提交
export function centerWorkSaveOrSubmit(data) {
  return request({
    url: '/api/deptWorkPlans/centerWorkScores/results/selfAssessments',
    method: 'patch',
    data: data
  })
}
